package com.reverie.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

@Data
@TableName("t_menu")
public class Menu {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String code;
    private String name;
    private String iconName;
    private Integer parentId;
    private Integer type;
    private String viewPath;
    private Integer sortId;

    @TableField(exist = false)
    private List<Menu> children;
}
